package com.example.jinzproduct.controller.feign;

import com.example.commons.entity.RoleDO;
import com.example.jinzproduct.server.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 角色表feign接口
 * @author mengzhichao
 * @create 2022-08-29-15:52
 */
@RestController
@RequestMapping("/jinZhiIndex/RoleFeignController")
public class RoleFeignController {

    @Autowired
    private RoleService roleService;


    @GetMapping("/getById")
    public RoleDO getById(String id) {
       return roleService.getById(id);
    }


}
